export default {
  'get /api/user/detail': (req: any, res: any) => {
    res.json({
      status: 200,
      data: {
        id: 10,
        username: '测试用户',
        avatar:
          'http://img2.mukewang.com/szimg/5ad05dc00001eae705400300-360-202.jpg',
        phone: '123456789000',
        sign: '测试数据',
      },
    });
  },
  'put /api/user/edit': (req: any, res: any) => {
    res.json({
      status: 200,
      data: 'ok',
    });
  },
  'post /api/user/login': (req: any, res: any) => {
    res.json({
      status: 200,
      data: {
        id: 100,
        username: 'admin',
      },
    });
  },
  'post /api/user/register': (req: any, res: any) => {
    res.json({
      status: 200,
      data: {
        id: 100,
        username: 'admin',
      },
    });
  },
};
